limsKnowledgelibrary = {

    getKnowledgelibraryPanel: function () {
        return {
            type: 'KnowledgeBase',
            id: 'knowledgebase'
        }
    },

    create: function () {
        var _this = this
        Gikam.create('layout', {
            id: 'lims-group-edit-list-layout',
            renderTo: document.body,
            center: {
                items: [_this.getKnowledgelibraryPanel()]
            }
        })
        window.refresh = function () {
            Gikam.getAsyncComp('lims-group-edit-list-layout').done(k => {
                k.getPosition('center').refreshItems([_this.getKnowledgelibraryPanel()])
            })
        }
    },

    init: function () {
        this.create()
    }
}
